/**
@description: print 1 to n(in this case is 100) without loop
@author: timlentse(tinglenxan@gmail.com)
@Date: 2014-11-05
*/
public class Print1ToNWithoutLoop {
 void printNos(int n) {
  if (n > 0) {
   printNos(n - 1);
   System.out.println(n);
  }
 }

 public static void main(String s[]) {
  (new print1ToNWithoutLoop()).printNos(100);
 }
}